﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000797 RID: 1943
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetPlayerBoardDataScRsp : IMessage<GetPlayerBoardDataScRsp>, IMessage, IEquatable<GetPlayerBoardDataScRsp>, IDeepCloneable<GetPlayerBoardDataScRsp>, IBufferMessage
	{
		// Token: 0x170018CD RID: 6349
		// (get) Token: 0x0600574A RID: 22346 RVA: 0x000EBB4B File Offset: 0x000E9D4B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetPlayerBoardDataScRsp> Parser
		{
			get
			{
				return GetPlayerBoardDataScRsp._parser;
			}
		}

		// Token: 0x170018CE RID: 6350
		// (get) Token: 0x0600574B RID: 22347 RVA: 0x000EBB52 File Offset: 0x000E9D52
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetPlayerBoardDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170018CF RID: 6351
		// (get) Token: 0x0600574C RID: 22348 RVA: 0x000EBB64 File Offset: 0x000E9D64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetPlayerBoardDataScRsp.Descriptor;
			}
		}

		// Token: 0x0600574D RID: 22349 RVA: 0x000EBB6B File Offset: 0x000E9D6B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPlayerBoardDataScRsp()
		{
		}

		// Token: 0x0600574E RID: 22350 RVA: 0x000EBB94 File Offset: 0x000E9D94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPlayerBoardDataScRsp(GetPlayerBoardDataScRsp other) : this()
		{
			this.displayAvatarVec_ = ((other.displayAvatarVec_ != null) ? other.displayAvatarVec_.Clone() : null);
			this.currentHeadIconId_ = other.currentHeadIconId_;
			this.assistAvatarIdList_ = other.assistAvatarIdList_.Clone();
			this.unlockedHeadIconList_ = other.unlockedHeadIconList_.Clone();
			this.signature_ = other.signature_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600574F RID: 22351 RVA: 0x000EBC1A File Offset: 0x000E9E1A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetPlayerBoardDataScRsp Clone()
		{
			return new GetPlayerBoardDataScRsp(this);
		}

		// Token: 0x170018D0 RID: 6352
		// (get) Token: 0x06005750 RID: 22352 RVA: 0x000EBC22 File Offset: 0x000E9E22
		// (set) Token: 0x06005751 RID: 22353 RVA: 0x000EBC2A File Offset: 0x000E9E2A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public DisplayAvatarVec DisplayAvatarVec
		{
			get
			{
				return this.displayAvatarVec_;
			}
			set
			{
				this.displayAvatarVec_ = value;
			}
		}

		// Token: 0x170018D1 RID: 6353
		// (get) Token: 0x06005752 RID: 22354 RVA: 0x000EBC33 File Offset: 0x000E9E33
		// (set) Token: 0x06005753 RID: 22355 RVA: 0x000EBC3B File Offset: 0x000E9E3B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurrentHeadIconId
		{
			get
			{
				return this.currentHeadIconId_;
			}
			set
			{
				this.currentHeadIconId_ = value;
			}
		}

		// Token: 0x170018D2 RID: 6354
		// (get) Token: 0x06005754 RID: 22356 RVA: 0x000EBC44 File Offset: 0x000E9E44
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> AssistAvatarIdList
		{
			get
			{
				return this.assistAvatarIdList_;
			}
		}

		// Token: 0x170018D3 RID: 6355
		// (get) Token: 0x06005755 RID: 22357 RVA: 0x000EBC4C File Offset: 0x000E9E4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<HeadIconData> UnlockedHeadIconList
		{
			get
			{
				return this.unlockedHeadIconList_;
			}
		}

		// Token: 0x170018D4 RID: 6356
		// (get) Token: 0x06005756 RID: 22358 RVA: 0x000EBC54 File Offset: 0x000E9E54
		// (set) Token: 0x06005757 RID: 22359 RVA: 0x000EBC5C File Offset: 0x000E9E5C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public string Signature
		{
			get
			{
				return this.signature_;
			}
			set
			{
				this.signature_ = ProtoPreconditions.CheckNotNull<string>(value, "value");
			}
		}

		// Token: 0x170018D5 RID: 6357
		// (get) Token: 0x06005758 RID: 22360 RVA: 0x000EBC6F File Offset: 0x000E9E6F
		// (set) Token: 0x06005759 RID: 22361 RVA: 0x000EBC77 File Offset: 0x000E9E77
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600575A RID: 22362 RVA: 0x000EBC80 File Offset: 0x000E9E80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetPlayerBoardDataScRsp);
		}

		// Token: 0x0600575B RID: 22363 RVA: 0x000EBC90 File Offset: 0x000E9E90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetPlayerBoardDataScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.DisplayAvatarVec, other.DisplayAvatarVec) && this.CurrentHeadIconId == other.CurrentHeadIconId && this.assistAvatarIdList_.Equals(other.assistAvatarIdList_) && this.unlockedHeadIconList_.Equals(other.unlockedHeadIconList_) && !(this.Signature != other.Signature) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600575C RID: 22364 RVA: 0x000EBD30 File Offset: 0x000E9F30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.displayAvatarVec_ != null)
			{
				num ^= this.DisplayAvatarVec.GetHashCode();
			}
			if (this.CurrentHeadIconId != 0U)
			{
				num ^= this.CurrentHeadIconId.GetHashCode();
			}
			num ^= this.assistAvatarIdList_.GetHashCode();
			num ^= this.unlockedHeadIconList_.GetHashCode();
			if (this.Signature.Length != 0)
			{
				num ^= this.Signature.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600575D RID: 22365 RVA: 0x000EBDD5 File Offset: 0x000E9FD5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600575E RID: 22366 RVA: 0x000EBDDD File Offset: 0x000E9FDD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600575F RID: 22367 RVA: 0x000EBDE8 File Offset: 0x000E9FE8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.CurrentHeadIconId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.CurrentHeadIconId);
			}
			if (this.displayAvatarVec_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.DisplayAvatarVec);
			}
			this.unlockedHeadIconList_.WriteTo(ref output, GetPlayerBoardDataScRsp._repeated_unlockedHeadIconList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.Retcode);
			}
			this.assistAvatarIdList_.WriteTo(ref output, GetPlayerBoardDataScRsp._repeated_assistAvatarIdList_codec);
			if (this.Signature.Length != 0)
			{
				output.WriteRawTag(82);
				output.WriteString(this.Signature);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005760 RID: 22368 RVA: 0x000EBEA0 File Offset: 0x000EA0A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.displayAvatarVec_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.DisplayAvatarVec);
			}
			if (this.CurrentHeadIconId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurrentHeadIconId);
			}
			num += this.assistAvatarIdList_.CalculateSize(GetPlayerBoardDataScRsp._repeated_assistAvatarIdList_codec);
			num += this.unlockedHeadIconList_.CalculateSize(GetPlayerBoardDataScRsp._repeated_unlockedHeadIconList_codec);
			if (this.Signature.Length != 0)
			{
				num += 1 + CodedOutputStream.ComputeStringSize(this.Signature);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005761 RID: 22369 RVA: 0x000EBF54 File Offset: 0x000EA154
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetPlayerBoardDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.displayAvatarVec_ != null)
			{
				if (this.displayAvatarVec_ == null)
				{
					this.DisplayAvatarVec = new DisplayAvatarVec();
				}
				this.DisplayAvatarVec.MergeFrom(other.DisplayAvatarVec);
			}
			if (other.CurrentHeadIconId != 0U)
			{
				this.CurrentHeadIconId = other.CurrentHeadIconId;
			}
			this.assistAvatarIdList_.Add(other.assistAvatarIdList_);
			this.unlockedHeadIconList_.Add(other.unlockedHeadIconList_);
			if (other.Signature.Length != 0)
			{
				this.Signature = other.Signature;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005762 RID: 22370 RVA: 0x000EC00B File Offset: 0x000EA20B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005763 RID: 22371 RVA: 0x000EC014 File Offset: 0x000EA214
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num > 34U)
				{
					if (num <= 72U)
					{
						if (num == 40U)
						{
							this.Retcode = input.ReadUInt32();
							continue;
						}
						if (num != 72U)
						{
							goto IL_36;
						}
					}
					else if (num != 74U)
					{
						if (num != 82U)
						{
							goto IL_36;
						}
						this.Signature = input.ReadString();
						continue;
					}
					this.assistAvatarIdList_.AddEntriesFrom(ref input, GetPlayerBoardDataScRsp._repeated_assistAvatarIdList_codec);
					continue;
				}
				if (num == 16U)
				{
					this.CurrentHeadIconId = input.ReadUInt32();
					continue;
				}
				if (num == 26U)
				{
					if (this.displayAvatarVec_ == null)
					{
						this.DisplayAvatarVec = new DisplayAvatarVec();
					}
					input.ReadMessage(this.DisplayAvatarVec);
					continue;
				}
				if (num == 34U)
				{
					this.unlockedHeadIconList_.AddEntriesFrom(ref input, GetPlayerBoardDataScRsp._repeated_unlockedHeadIconList_codec);
					continue;
				}
				IL_36:
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04002214 RID: 8724
		private static readonly MessageParser<GetPlayerBoardDataScRsp> _parser = new MessageParser<GetPlayerBoardDataScRsp>(() => new GetPlayerBoardDataScRsp());

		// Token: 0x04002215 RID: 8725
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002216 RID: 8726
		public const int DisplayAvatarVecFieldNumber = 3;

		// Token: 0x04002217 RID: 8727
		private DisplayAvatarVec displayAvatarVec_;

		// Token: 0x04002218 RID: 8728
		public const int CurrentHeadIconIdFieldNumber = 2;

		// Token: 0x04002219 RID: 8729
		private uint currentHeadIconId_;

		// Token: 0x0400221A RID: 8730
		public const int AssistAvatarIdListFieldNumber = 9;

		// Token: 0x0400221B RID: 8731
		private static readonly FieldCodec<uint> _repeated_assistAvatarIdList_codec = FieldCodec.ForUInt32(74U);

		// Token: 0x0400221C RID: 8732
		private readonly RepeatedField<uint> assistAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x0400221D RID: 8733
		public const int UnlockedHeadIconListFieldNumber = 4;

		// Token: 0x0400221E RID: 8734
		private static readonly FieldCodec<HeadIconData> _repeated_unlockedHeadIconList_codec = FieldCodec.ForMessage<HeadIconData>(34U, HeadIconData.Parser);

		// Token: 0x0400221F RID: 8735
		private readonly RepeatedField<HeadIconData> unlockedHeadIconList_ = new RepeatedField<HeadIconData>();

		// Token: 0x04002220 RID: 8736
		public const int SignatureFieldNumber = 10;

		// Token: 0x04002221 RID: 8737
		private string signature_ = "";

		// Token: 0x04002222 RID: 8738
		public const int RetcodeFieldNumber = 5;

		// Token: 0x04002223 RID: 8739
		private uint retcode_;
	}
}
